<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<h1>用户列表</h1>
<ul>
  <% for user in @all_users %>
    <li>
      <%= h(user.name) %>
      <%= link_to "删除", { # link_to options
        :controller => 'login',
        :action => 'delete_user',
        :id => user},
        { # html options
        :method  => :post,
        :confirm => "您确定要删除 #{user.name}?"
      } %>
    </li>
  <% end %>
</ul>
